package com.example.Server;

import com.example.Model.QutionAllModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.Mapper.Topic_Mapper;
import java.util.HashMap;
import java.util.List;

@Service
public class TopicServer {
    @Autowired
    private  Topic_Mapper mapper;
    /*
    * 获取所有题目
     */
    public List<QutionAllModel> Getall(){

     return mapper.getTopicAll();

    }
    public HashMap<String,Object> GetQutionBody(int id){
        return mapper.getTopicBody(id);
    }

}
